package com.hqshuke.exchange.trade.controller;


import com.hqshuke.exchange.trade.dto.TestDto;

import com.hqshuke.exchange.trade.service.MainService;
import com.hqshuke.exchange.trade.vo.TestVo;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/main")
@Tag(description = "trade", name = "交易拍卖服务模块")
public class MainController {

    @Autowired
    private MainService mainService;


    @GetMapping("/test")
    @Operation(summary = "get测试")
    public TestVo test(TestDto testDto){

        return mainService.testService(testDto.getRequestMsg());
    }

}
